package cn.cycleif.app.mapper;

import cn.cycleif.entity.Question;
import cn.cycleif.entity.TagQuestion;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TagQuestionMapper extends BaseMapper<TagQuestion> {

  Page<Question> pageQueryWithOrder(
      @Param("page") Page<?> page,
      @Param("tagId") Integer tagId,
      LambdaQueryWrapper<Question> wrapper);

  Page<Question> pageQueryWithCondition(
      @Param("page") Page<?> page,
      @Param("tagId") Integer tagId,
      LambdaQueryWrapper<Question> wrapper);
}
